package com.example.siyun.service.impl.permissionsserviceimpl;

import com.example.siyun.mapper.permissionsmapper.VersionManagerMapper;
import com.example.siyun.pojo.VersionManager;
import com.example.siyun.service.permissionsservice.VersionManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
/**
 * @Auther: 全
 * @Date: 2022/9/26 09:33
 * @Description:权限管理模块后台版本管理
 */
@Service
public class VersionManagerServiceImpl implements VersionManagerService {
    @Autowired
    private VersionManagerMapper versionManagerMapper;
    /**
     * 获取后台版本信息
     * @return 返回后台版本管理信息
     */
    @Transactional
    @Override
    public List<VersionManager> getVersion(VersionManager versionManager) {
        return versionManagerMapper.getVersion(versionManager);
    }
    /**
     * 通过id查询对应的版本信息
     * @return 返回对应的版本信息
     */
    @Transactional
    @Override
    public VersionManager getVersionById(int id) {
        return versionManagerMapper.getVersionById(id);
    }
}
